package com.kayak.easysp.busi.action;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.MDC;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.kayak.easysp.transbase.TransBase;
import com.kayak.kkweb.sys.RequestSupport;

/**
 * 薪酬核算相关接口
 *
 */
@Controller
public class SalaryCheckAction {
	public final static Logger log = LoggerFactory.getLogger(SalaryCheckAction.class);

	@RequestMapping(value = "/salaryCheck{trans_code}")
	public void service(@PathVariable(value = "trans_code") String transCode, HttpServletRequest request,
			HttpServletResponse response, ModelMap modelMap) {
		MDC.put("trans_code", transCode);
		Map<String, Object> params = RequestSupport.getParameters();
		params.put("ip", request.getRemoteAddr());//获取请求ip
		TransBase.doService(transCode, params, response);
	}
}
